package com.kmzx.one.project.service;

import com.kmzx.one.project.others.dto.UserAddressInfo;

import java.util.List;

public interface UserAddressService extends BaseService {

    List<UserAddressInfo> findAllAddress(String userId) throws Exception;

    Integer userAddressAdd(UserAddressInfo info) throws Exception;

    Integer userAddressEdit(UserAddressInfo info) throws Exception;

    Integer delUserAddress(String userId, String addressId) throws Exception;

    Integer setUserAddressDefault(String userId, String addressId) throws Exception;

    int resetUserPriorityAddress(String userId);

    int updateUserPriorityAddress(String id);

    int checkAddressDelivery(String userId,String addressId);
}
